home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / clonecd / September 93.img / Archives / Decoration / Screensavers / Screen Savers / TwilightZone / source / sndstuff.c < prev    next >
C/C++ Source or Header  |  1993-07-17  |  371b  |  24 lines

  1. #include "GraphicsModule_Types.h"
  2. #include "sndstuff.h"
  3.  
  4. OSErr MakeModuleSound(SndChannelPtr *retSndChannel,short soundType)
  5. {
  6.     OSErr err;
  7.  
  8.     *retSndChannel = nil;
  9.  
  10.     if (soundType==-1)
  11.         return;
  12.         
  13.     err = SndNewChannel(retSndChannel,soundType,0,nil);
  14.     
  15.     return err;
  16. }
  17.  
  18.  
  19. OSErr DisposeModuleSound(SndChannelPtr sndCh)
  20. {
  21.     if (sndCh)
  22.         return SndDisposeChannel(sndCh,true);
  23. }
  24.